typedef HRESULT (WINAPI *TD3DXCreateEffectEx)(
  _In_   LPDIRECT3DDEVICE9 pDevice,
  _In_   LPCVOID pSrcData,
  _In_   UINT SrcDataLen,
  _In_   const D3DXMACRO *pDefines,
  _In_   LPD3DXINCLUDE pInclude,
  _In_   LPCSTR pSkipConstants,
  _In_   DWORD Flags,
  _In_   LPD3DXEFFECTPOOL pPool,
  _Out_  LPD3DXEFFECT *ppEffect,
  _Out_  LPD3DXBUFFER *ppCompilationErrors
);

TD3DXCreateEffectEx OldD3DXCreateEffectEx;

DllExport HRESULT cc D3DXCreateEffectEx(
  _In_   LPDIRECT3DDEVICE9 pDevice,
  _In_   LPCVOID pSrcData,
  _In_   UINT SrcDataLen,
  _In_   const D3DXMACRO *pDefines,
  _In_   LPD3DXINCLUDE pInclude,
  _In_   LPCSTR pSkipConstants,
  _In_   DWORD Flags,
  _In_   LPD3DXEFFECTPOOL pPool,
  _Out_  LPD3DXEFFECT *ppEffect,
  _Out_  LPD3DXBUFFER *ppCompilationErrors
)
{
	return OldD3DXCreateEffectEx (pDevice, pSrcData, SrcDataLen, pDefines,pInclude,pSkipConstants,Flags,pPool,ppEffect,ppCompilationErrors);
}
